You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TDenseMtxVec Class > TDenseMtxVec Methods > DotProd Method > TDenseMtxVec.DotProd Method ([In] TMtxVec)
Dew Math for .NET
ContentsIndexHome
Example
using Dew.Math; using Dew.Math.Units; namespace Dew.Examples() { void Example() { TVec a,b; MtxVec.CreateIt(out a, out b); try { a.SetIt(false, new double[] {1,2,3,4}); b.SetIt(false, new double[] {5,6,7,8}); double prod = a.DotProd(b); // = 1*5 + 2*6 + * 3*7 + 4*8 } finally { MtxVec.FreeIt(ref a,ref b); } } }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.